Smush\Core\Parser\Element A

Total Complexity 58
Dependencies 4
Dependents 7
Total lines 370
Lines of code 227
Logical lines of code 102
Comment lines 70
Methods 31
Properties 11

Methods 31

Method Rating Maintainability Complexity Lines of code
has_updates()
S
64 5 10
replace_attributes()
S
58 3 17
get_image_attribute_names()
S
52 2 29
update_attributes()
S
63 3 12
update_css_properties()
S
63 3 12
remove_attribute()
S
63 3 11
prepare_image_attributes()
S
65 3 10
get_background_css_property()
S
67 3 8
get_attribute()
S
67 3 8
remove_attributes()
S
68 2 7
change_attribute_quote_character()
S
69 2 7
find_quote_character()
S
77 2 3
add_or_update_attribute()
S
69 2 7
add_new_attributes()
S
66 2 8
get_attribute_value()
S
71 2 6
get_image_attributes()
S
72 2 6
append_attribute_value()
S
66 2 8
get_updated_markup()
S
61 1 12
is_image_element()
S
80 1 3
__construct()
S
69 1 7
add_css_property()
S
76 1 4
add_postfix()
S
80 1 3
set_postfix()
S
81 1 3
get_markup()
S
82 1 3
get_css_properties()
S
82 1 3
set_has_updates()
S
81 1 3
replace_attribute()
S
76 1 4
add_attribute()
S
75 1 4
get_attributes()
S
82 1 3
get_tag()
S
82 1 3
has_attribute()
S
79 1 3